<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/jquery.min.js"></script>
    <link rel="stylesheet" href="../../../static/layui-v2.6.8/layui/css/layui.css" media="all">

</head>
<body>

<div id="view"></div>
  
  
<script src="../../../static/layui-v2.6.8/layui/layui.js"></script>

<script>

layui.use('laytpl', function(){
  var laytpl = layui.laytpl;
  
  //直接解析字符
  laytpl([
    '<div>{{ d.name }}是一位公猿</div>'
    ,'其它字符 {{ d.content }}  其它字符'
  ].join('小青,爱仕达','爱仕达所多'))
}); 
</script>
    

</body>
</html>